package cn.iocoder.yudao.module.reading.controller.app.assignment.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import java.time.LocalDate;
import java.util.List;

/**
 * 班级作业创建 Request VO
 *
 * @author 芋道源码
 */
@Schema(description = "用户 APP - 班级作业创建 Request VO")
@Data
public class AssignmentCreateReqVO {

    @Schema(description = "班级ID", example = "1")
    private Long classId;

    @Schema(description = "多班级ID列表（跨班级作业时使用）", example = "[1, 2, 3]")
    private List<Long> classIds;

    @Schema(description = "作业标题", requiredMode = Schema.RequiredMode.REQUIRED, example = "01月11日作业")
    @NotBlank(message = "作业标题不能为空")
    @Size(max = 200, message = "作业标题长度不能超过200字符")
    private String title;

    @Schema(description = "截止日期", requiredMode = Schema.RequiredMode.REQUIRED, example = "2025-01-11")
    @NotNull(message = "截止日期不能为空")
    private LocalDate assignmentDate;

    @Schema(description = "完成要求类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "read")
    @NotBlank(message = "完成要求类型不能为空")
    private String requirementType;

    @Schema(description = "作业描述", example = "阅读理解练习")
    @Size(max = 1000, message = "作业描述长度不能超过1000字符")
    private String description;

    @Schema(description = "绘本ID列表", requiredMode = Schema.RequiredMode.REQUIRED, example = "[1, 2, 3]")
    @NotEmpty(message = "绘本列表不能为空")
    private List<Long> bookIds;

    @Schema(description = "排除的成员ID列表", example = "[1, 2]")
    private List<Long> excludedMemberIds;

    @Schema(description = "参与作业的成员ID列表", example = "[3, 4, 5]")
    private List<Long> participantMemberIds;

}
